home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CD Exchange
/
CD Exchange - Volume 1.iso
/
utils
/
misc
/
muroloutil
/
switch.doc
< prev
next >
Wrap
Text File
|
1993-11-02
|
3KB
|
114 lines
SWITCH
=============
(C) 1993 by Felice Murolo, all rights reserved
Switch is FREEWARE.
0. About
========
This program is FREEWARE, you may copy and spread it, as you want, but
you MUST NOT earn money with it.
If you give this program to someone else, you have to copy the whole
package which must consist of:
- this document
- a working copy of SWITCH
THE AUTHOR UNDERTAKES NO LIABILITY FOR ANY DAMAGE CAUSED BY THE
APPROPRIATE OR NOT APPROPRIATE USE OF THIS PROGRAM !
THE AUTHOR UNDERTAKES NO LIABILITY FOR THE FAULTLESSNESS OF THIS
PROGRAM !
USE IT AT YOUR OWN RISK !
If you have hints, bug-reports, criticism, *MONEY*, postal cards, flowers or
PD-soft for me, write to:
Felice Murolo
Via Posidonia 205
84128 Salerno, Italia
Network: 2:335/206@fidonet.org 39:102/5@amiganet.ftn
BBS +39 (0)89 756281 21:00 to 08:00 HST
If you want an answer, please add postage !
1. Sources
==========
Package don't include sources. Sources are available from the author. To
have sources:
- FidoNet-AmigaNet people: send 5 US$(7000 Italian lires) and your
network address. I'll crash you the sources;
- Other people: send 10$ and your postal address and i'll send you a disk
with sources of this and some other utilities;
2. IMPORTANT
============
All the donations (for sources or simply for present) will be devolved to
A.I.R.C. (Italian Association for Cancer Research).
3. Hardware
===========
Switch runs ONLY under Kickstart 2.0 or greater. It needs 512kB, the stack
should be about 4000 bytes. In LIBS: must be gadtools.library.
4. How it Works
===============
Switch works only from CLI.
Switch is a program which opens a little center window on a pubblic
screen (default WorkBench screen, customizable with PUBSCREEN switch).
The window have 3 gadgets into it:
- a text gadget, which stores the text you have passed via CLI with
ACTION_TEXT switch;
- two buttons, one for CONTINUE and other for EXIT function.
If you click on CONTINUE, program exits and returns 0. If you click on EXIT,
program exits and returns 5. Keys "C" and "E" are the underscore values for
CONTINUE and EXIT.
If you do nothing, the program exits after a programmable time (default 3
seconds, to change use DELAY switch).
5. Usage of Switch
==================
The uses of switch can be a lot. I use it in some batch files, to popup a
little requester. General use of switch is:
;This is a batch file
failat 10
echo "*NSwitch test!*N"
;popup a requester on TrapDoor public screen, and set a delay time of
;5 secs
switch ACTION_TEXT="I'm executing TEST2" DELAY=5 PUBSCREEN="TrapDoor"
if warn
echo "Exiting and execute TEST1"
skip TEST1
endif
lab TEST1
echo "This is Label 1"
quit
lab TEST2
echo "This is Label 2"
;End of batch file
Enjoy!
-Felice Murolo